//
// Created by 86136 on 2024/11/30.
//

#ifndef CHAT_USER_HPP
#define CHAT_USER_HPP

#include <string>
using namespace std;

// 匹配User表的ORM类
class User {
public:
    User(int id=-1, string name="", string pwd="", string state="offline") {
        this->id = id;
        this->name = name;
        this->password = pwd;
        this->state = state;
    }

    void setId(int id_) { this->id = id_;}

    void setName(string name_) { this->name = name_;}

    void setPwd(string pwd) { this->password = pwd;}

    void setState(string state_) { this->state = state_;}

    int getId() { return id;}

    string getName() { return name;}

    string getPwd() { return password;}

    string getState() { return state;}

private:
    int id;
    string name;
    string password;
    string state;
};

#endif //CHAT_USER_HPP
